package com.wd.live.module_my.view.activity




//import android.graphics.Color
//import android.graphics.DashPathEffect
//import android.util.Log
//import androidx.core.content.ContextCompat
//import com.alibaba.android.arouter.facade.annotation.Route
//import com.github.mikephil.charting.charts.LineChart
//import com.github.mikephil.charting.components.Legend
//import com.github.mikephil.charting.components.LimitLine
//import com.github.mikephil.charting.components.MarkerView
//import com.github.mikephil.charting.components.XAxis
//import com.github.mikephil.charting.components.YAxis
//import com.github.mikephil.charting.data.Entry
//import com.github.mikephil.charting.data.LineData
//import com.github.mikephil.charting.data.LineDataSet
//import com.github.mikephil.charting.formatter.IFillFormatter
//import com.github.mikephil.charting.highlight.Highlight
//import com.github.mikephil.charting.interfaces.datasets.ILineDataSet
//import com.github.mikephil.charting.listener.OnChartValueSelectedListener
//import com.github.mikephil.charting.utils.Utils
import com.alibaba.android.arouter.facade.annotation.Route
import com.wd.live.module_base.ui.base.BaseActivity
import com.wd.live.module_my.R
import com.wd.live.module_my.databinding.ActivityPurseBinding
import com.wd.live.module_my.viewmodel.MyViewModel


@Route(path = "/my/my/purse_activity")
class PurseActivity : BaseActivity<MyViewModel,ActivityPurseBinding>() {
    override fun getLayout(): Int {
        return R.layout.activity_purse
    }
    var timeList= ArrayList<Int>()
    val bottomList= ArrayList<String>()
    override fun initData() {
        bottomList.add("第1周")
        bottomList.add("第2周")
        bottomList.add("第3周")
        bottomList.add("第4周")
        bottomList.add("第5周")
        bottomList.add("第6周")
        bottomList.add("第7周")
        timeList.add(60)
        timeList.add(80)
        timeList.add(40)
        timeList.add(20)
        timeList.add(60)
        timeList.add(40)
        timeList.add(0)
        binding.tongPurse.updateTime(timeList,bottomList)
        binding.tongPurse.dp2px(2F)
        binding.tongPurse.dp2px(this,2F)
        binding.tongPurse.getMaxTime(timeList)


    }

    override fun getViewModelClass(): Class<MyViewModel> {
      return MyViewModel::class.java
    }

}